package wiki.hitime.demo.test.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import wiki.hitime.demo.test.bean.db.User;
import wiki.hitime.demo.test.bean.dto.ResultDTO;
import wiki.hitime.demo.test.bean.dto.req.UserGetReqDTO;
import wiki.hitime.demo.test.config.FeignConfiguration;

/**
 * @author zhangdaoping
 * @create 2019-10-31 13:40
 */
@FeignClient(name = "fin", url = "https://mockapi.eolinker.com/vnIguQW533958a2148aa8a3466fa3a8340d51e28294f41d",configuration = FeignConfiguration.class)
public interface FinFeignClient {

    /**
     * 获取单个用户
     *
     * @param reqDTO 请求实体
     * @return 响应
     */
    @PostMapping("/user/get")
    ResultDTO<User> get(UserGetReqDTO reqDTO);
}
